package cn.yunhe.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*
例二，主要是练习注入

 */
public class Computer {
    private MainFrame main;
    private Types types;

    public void com(){
        System.out.println("计算机配置如下");
        main.printMainInfo();
        types.typesInfo();
    }
}
